package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.Person;
import com.entity.User;

/****
 *使用的是读取配置文件
 *
 */
public interface UserMapper {
	public User getUser(int id);
	public User getUser2(int id);
	public int addUser(User user);
	public int addUserAndGetID(User user);
	public int userUpdate(User user);
	public int delUser(int id);
	public int insertUser(User user);
	public List<Person> getPerson(int id);
	public int insertPerson(Person p);
	public List<User> testIf(@Param("name") String name);
}